#include "Pitfall.h"
#include "ActivateAbility.h"

Pitfall::Pitfall(): activateAbility(0)
{
	// Setup abilities
	activateAbility = new ActivateAbility(this);


	AddAbility(activateAbility);

	// Setup behaviour
	behavior.SetActivator(this);
}

Pitfall::~Pitfall()
{
	if (activateAbility)
	{
		delete activateAbility;
		activateAbility = 0;
	}
}

void Pitfall::Activate()
{
	printf("Pitfall activated\n");
}

StepCalculator* Pitfall::GetActivationBehavior()
{
	return &behavior;
}

void Pitfall::MoveTo(unsigned int cellX, unsigned int cellY)
{
	SetPosition(cellX, cellY);
}